package com.ctg.itrdc.sysmgr.portal.api.service;

import java.util.List;

import com.ctg.itrdc.pasp.core.IBaseService;
import com.ctg.itrdc.pasp.core.PageInfo;
import com.ctg.itrdc.sysmgr.portal.api.dto.OrganizationDTO;
import com.ctg.itrdc.sysmgr.portal.data.entity.Organization;

public interface IOrganizationService  extends IBaseService<Organization, Long, OrganizationDTO>{
	
//	public PageInfo<OrganizationDTO> queryPageInfo(OrganizationDTO dto, Integer currentPage,
//	Integer perPageNum);

//	public List<OrganizationDTO> selectOrgTree(Long sysPostId);

//	public List<OrganizationDTO> selectBySysPostId(Long sysPostId);
	/**
	 * 更具orgId,查出该组织及其子组织
	 * @param orgId
	 * @return
	 */
	public List<OrganizationDTO> selectMainAndSubByOrgId(Long orgId);
	/**
	 * 子组织查询
	 * @param sysPostId
	 * @param dto
	 * @return
	 */
	public List<OrganizationDTO> selectSubOrg(OrganizationDTO dto);
	/**
	 * 搜索组织树,获取orgName及其所有上级的树。存在性能问题。不推荐使用。
	 * @param sysPostId
	 * @param dto
	 * @return
	 */
//	public List<OrganizationDTO> searchOrgTree(Long sysPostId, OrganizationDTO dto);


}
